package org.osami.gateway.jennic.mock;

import org.apache.felix.ipojo.annotations.Bind;
import org.apache.felix.ipojo.annotations.Component;
import org.apache.felix.ipojo.annotations.Requires;
import org.osami.gateway.jennic.IJennicDevice;
import org.osgi.framework.ServiceReference;
import org.osgi.service.device.Driver;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: guillaume
 * Date: 17 juin 2010
 * Time: 13:52:02
 * To change this template use File | Settings | File Templates.
 */
@Component
public class PseudoDeviceManager {

    @Requires
    private Driver driver;

    @Bind(optional = true, aggregate = true)
    public void bindDevice(IJennicDevice device, ServiceReference reference) throws Exception {
        driver.attach(reference);
    }
}
